package com.ddstation.onsitelaw.entity;

import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "dt_health_data_west_prescription_for_public", schema = "hzsc_invs")
public class DtHealthDataWestPrescriptionForPublicEntity {
    @Column(name = "id")
    private String id;

    @Column(name = "source_type")
    private String sourceType;

    /**
     * 门诊病历ID
     */
    @Column(name = "medical_id")
    private String medicalId;

    @Column(name = "outer_prescription_no")
    private String outerPrescriptionNo;


    /**
     * 处方ID
     */
    @Column(name = "prescription_id")
    private String prescriptionId;

    private String uid;

    @Column(name = "child_id")
    private Integer childId;


    @Column(name = "user_name")
    private String userName;

    /**
     * 医疗机构id
     */
    @Column(name = "institution_id")
    private String institutionId;

    /**
     * 药品组号（场景：输液有好几种药的时候，需要设置相同的组号）
     */
    @Column(name = "group_no")
    private Integer groupNo;

    /**
     * 滴速
     */
    @Column(name = "dripping_speed")
    private Integer drippingSpeed;

    /**
     * dt_health_data_outpatient_medical  主键id
     */
    @Column(name = "item_id")
    private String itemId;

    /**
     * 药品名称
     */
    @Column(name = "item_name")
    private String itemName;

    /**
     * 用法code值
     */
    @Column(name = "drug_use")
    private String drugUse;

    /**
     * 用法code文本
     */
    @Column(name = "drug_use_text")
    private String drugUseText;

    /**
     * 药品规格
     */
    private String specification;

    /**
     * 药品厂家
     */
    private String manufacturer;

    /**
     * 用药频率
     */
    private String frequency;

    /**
     * 用药频率文本（打印用）
     */
    @Column(name = "frequency_text")
    private String frequencyText;

    /**
     * 单次剂量
     */
    @Column(name = "once_dose")
    private Float onceDose;

    /**
     * 0:按剂量单位开  1：按制剂单位开
     */
    @Column(name = "once_dose_unit_type")
    private Short onceDoseUnitType;

    /**
     * 单次剂量单位
     */
    @Column(name = "dose_unit")
    private String doseUnit;

    /**
     * 开药量
     */
    private Float dosage;

    /**
     * 开药量单位
     */
    @Column(name = "dosage_unit")
    private String dosageUnit;

    /**
     * 拆零药品开药单位区分  1：大单位  2：小单位
     */
    @Column(name = "dosage_unit_type")
    private Short dosageUnitType;

    /**
     * 零售价
     */
    @Column(name = "retail_price")
    private Float retailPrice;

    /**
     * 开药天数
     */
    @Column(name = "prescribing_number")
    private Short prescribingNumber;

    /**
     * 皮试 0：不要  1：要
     */
    @Column(name = "skin_test")
    private Short skinTest;

    /**
     * 总价
     */
    @Column(name = "total_price")
    private Float totalPrice;

    /**
     * 开处方医生
     */
    @Column(name = "doctor_id")
    private String doctorId;

    /**
     * 医生姓名
     */
    @Column(name = "doctor_name")
    private String doctorName;

    /**
     * 医师执业证书编号
     */
    private String qualification;

    /**
     * 0:本院 1:外配 9:外送'
     */
    private Short source;

    /**
     * 0:免费 1:收费'
     */
    @Column(name = "fee_mode")
    private Short feeMode;

    /**
     * 出具日期
     */
    @Column(name = "issue_dt")
    private Date issueDt;

    /**
     * 修改总价后重新计算的零售价
     */
    @Column(name = "edit_retail_price")
    private BigDecimal editRetailPrice;

    /**
     * 修改总价后重新计算的药品总价
     */
    @Column(name = "edit_total_price")
    private BigDecimal editTotalPrice;

    @Column(name = "update_tm")
    private Date updateTm;


    @Column(name = "seccess_flg")
    private String seccessFlg;

    @Column(name = "send_cnt")
    private String sendCnt;

    @Column(name = "send_time")
    private Date sendTime;
}